package com.henanuniversity.controller;

import com.henanuniversity.po.Food;
import com.henanuniversity.service.FoodService;
import com.henanuniversity.service.impl.FoodServiceImpl;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class FoodController {

	public Object listFoodByBusinessId(HttpServletRequest request, HttpServletResponse response) throws Exception{
		Integer businessId = Integer.valueOf(request.getParameter("businessId"));
		FoodService service = new FoodServiceImpl();
		List<Food> list = service.listFoodByBusinessId(businessId);
		return list;
	}
}
